<html>
<head>
  <title>Evernote Export</title>
  <basefont face="微软雅黑" size="2" />
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  <meta name="exporter-version" content="YXBJ Windows/600753 (zh-CN, DDL); Windows/10.0.0 (Win64);"/>
  <style>
    body, td {
      font-family: 微软雅黑;
      font-size: 10pt;
    }
  </style>
</head>
<body>
<a name="996"/>

<div>
<span><div>MFC 处理过程</div><div>触发事件(点击事件)-操作系统-消息队列-应用程序<img src="MFC框架_files/Image.png" type="image/png" data-filename="Image.png"/></div><div><br/></div><div>Accelerator：快捷键</div><div>Bitmap：位图</div><div>Cursor：光标</div><div>DialogBox：对话框</div><div>Icon：图标</div><div>Stringtable：字符串表</div><div><br/></div><div>模式对话框与非模式对话框</div><div>模式对话框可以对背景窗口的操作进行限制</div><div>非模式对话框不对背景窗口的操作进行限制</div><div>hInstance：资源总管</div><div><br/></div><div>建成项目之后可以通过类视图看到有三个类</div><div><img src="MFC框架_files/Image [1].png" type="image/png" data-filename="Image.png"/></div><div>关于三个类</div><div><br/></div><div>CAboutDlg</div><div>是关于对话框，可以在项目向导的后续步骤中选择是否需要。</div><div>CMFCApplication1App</div><div>是CwinApp派生的类</div><div>是整个应用程序的框架，用于控制应用程序的开始和结束。</div><div>CMFCApplication1Dlg</div><div>程序运行后显示的主要界面。</div><div>是主对话框类，用于控制主对话框的行为，以及接受主对话框上的鼠标或键盘事件，并处理这些事件。</div><div><br/></div><div>资源试图</div><div><br/></div><div><img src="MFC框架_files/Image [2].png" type="image/png" data-filename="Image.png"/></div><div><br/></div><div>Dialog对话框</div><div>Dialog下面有两个对话框模式，他们的id分别为：</div><div>IDD_ABOUTBOX</div><div>是“关于”对话框的模板</div><div>IDD_MFCAPPLICATION1_DIALOG</div><div>1）是主对话框的模板。</div><div>2） 由此可见，创建对话框的第一步创建新的对话框已经由系统自动完成。若在添加对话框，需要新的对话框模板时，需要在资源试图的“Dialog”节点上右击–&gt;插入Dialog，就会生成新的对话框模板，并自定分派id。</div><div>Icon图标</div><div>String Table字符串表</div><div>Version版本</div><div>在资源树上双击某个资源的id，可以在中间区域显示id对于的界面。</div><div>双击IDD_MFCAPPLICATION1_DIALOG就会出现MFC对话框模板。</div><div><br/></div><div><span style="font-family: &quot;Microsoft YaHei&quot;, &quot;SF Pro Display&quot;, Roboto, Noto, Arial, &quot;PingFang SC&quot;, sans-serif;">ID：控件id号，唯一标示控件资源，可以修改。</span></div><div><span style="font-family: &quot;Microsoft YaHei&quot;, &quot;SF Pro Display&quot;, Roboto, Noto, Arial, &quot;PingFang SC&quot;, sans-serif;">caption：标题。</span></div><div><span style="font-family: &quot;Microsoft YaHei&quot;, &quot;SF Pro Display&quot;, Roboto, Noto, Arial, &quot;PingFang SC&quot;, sans-serif;">Border：边框类型。有四种类型。</span></div><div><br/></div><div><span style="font-family: &quot;Microsoft YaHei&quot;, &quot;SF Pro Display&quot;, Roboto, Noto, Arial, &quot;PingFang SC&quot;, sans-serif;">Maximize:是否使用最大化按钮</span><img src="MFC框架_files/Image [3].png" type="image/png" data-filename="Image.png"/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><span style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word; font-family: &quot;Microsoft YaHei&quot;, &quot;SF Pro Display&quot;, Roboto, Noto, Arial, &quot;PingFang SC&quot;, sans-serif;">Minimize：是否使用最小化按钮</span></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><span style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word; font-family: &quot;Microsoft YaHei&quot;, &quot;SF Pro Display&quot;, Roboto, Noto, Arial, &quot;PingFang SC&quot;, sans-serif;">Style：对话框风格。有三种风格：overlapped是重叠窗口，Popup是弹出式窗口，</span></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><span style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word; font-family: &quot;Microsoft YaHei&quot;, &quot;SF Pro Display&quot;, Roboto, Noto, Arial, &quot;PingFang SC&quot;, sans-serif;">Child是子窗口。</span></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><img src="MFC框架_files/Image [4].png" type="image/png" data-filename="Image.png"/></div><div><span style="font-family: &quot;Microsoft YaHei&quot;;">System Menu：是否带有标题栏左上角的系统菜单，包括移动，关闭等菜单项。使用的默认true</span></div><div><span style="font-family: &quot;Microsoft YaHei&quot;;">Title Bar：是否带有标题栏。</span></div><div><span style="font-family: &quot;Microsoft YaHei&quot;;">Font（size）：字体类型和大小。若将其修改为非系统字体，则USe System自动改为false。若Use system原本为false，则修改为true，则自动设置为系统字体。</span></div><div><span style="font-family: &quot;Microsoft YaHei&quot;;"><img src="MFC框架_files/Image [5].png" type="image/png" data-filename="Image.png"/></span></div><div><span style="font-family: &quot;Microsoft YaHei&quot;, &quot;SF Pro Display&quot;, Roboto, Noto, Arial, &quot;PingFang SC&quot;, sans-serif;"><br/></span></div><div><img src="MFC框架_files/20181010202910614.png" type="image/png" data-filename="20181010202910614.png"/></div><div><span style="font-family: &quot;Microsoft YaHei&quot;, &quot;SF Pro Display&quot;, Roboto, Noto, Arial, &quot;PingFang SC&quot;, sans-serif;">1</span></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; list-style-type: decimal; overflow-wrap: break-word;"><br/></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; font-family: &quot;Microsoft YaHei&quot;, &quot;SF Pro Display&quot;, Roboto, Noto, Arial, &quot;PingFang SC&quot;, sans-serif; list-style-type: decimal; overflow-wrap: break-word;"></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; font-family: &quot;Microsoft YaHei&quot;, &quot;SF Pro Display&quot;, Roboto, Noto, Arial, &quot;PingFang SC&quot;, sans-serif; list-style-type: decimal; overflow-wrap: break-word;"></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; font-family: &quot;Microsoft YaHei&quot;, &quot;SF Pro Display&quot;, Roboto, Noto, Arial, &quot;PingFang SC&quot;, sans-serif; list-style-type: decimal; overflow-wrap: break-word;"></div><div style="box-sizing: border-box; outline: 0px; margin: 8px 0px 0px 40px; padding: 0px; font-family: &quot;Microsoft YaHei&quot;, &quot;SF Pro Display&quot;, Roboto, Noto, Arial, &quot;PingFang SC&quot;, sans-serif; list-style-type: decimal; overflow-wrap: break-word;"></div></span>
</div></body></html> 